﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main1.Master" AutoEventWireup="true" CodeBehind="PasswordRecovery.aspx.cs" Inherits="ProjectSem40701.PasswordRecovery" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content_tab">
		<div class="content_tab_title"><span>Lấy lại mật khẩu</span></div>
		<div class="content_tab1">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:MultiView ID="myMultiview" runat="server" ActiveViewIndex="0">
                        <asp:View ID="username" runat="server">
                            
                            <table style="width: 100%">
                                <tr>
                                    <td>
                                        Tên sử dụng:  
                                    </td>
                                    <td>
                                        
                                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
                                        
                                    </td>
                                    <td>
                                        
                                        <asp:Button ID="btnGetUser" runat="server" Text="Kiểm tra" 
                                            onclick="btnGetUser_Click" />
                                        
                                    </td>
                                </tr>
                            </table>
                        </asp:View>
                        <asp:View ID="securityQuestion" runat="server">
                            <table style="width: 100%">
                                <tr>
                                    <td>
                                        Câu hỏi bí mật:</td>
                                    <td>
                                        <asp:Literal ID="ltrSecQues" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Câu trả lời bí mật:</td>
                                    <td>
                                        <asp:TextBox ID="txtSecurityAnswer" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" 
                                            Text="Hoàn tất" />
                                    </td>
                                </tr>
                            </table>
                        </asp:View>      
                        <asp:View ID="viewSuccess" runat="server">
                            Mật khẩu mới của bạn là: 
                            <asp:Label ID="lblNewPwd" runat="server" Text=""></asp:Label>. Bấm vào 
                            <asp:LinkButton ID="linkChangePwd" runat="server" PostBackUrl="ChangePassword.aspx">đây</asp:LinkButton> để thay đổi mật khẩu.
                        </asp:View>
                    </asp:MultiView>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
</asp:Content>
